const  baseUrl = ''     //baseUrl 是请求的地址
export const myRequest = (option)=>{
    return new Promise((resolve,reject)=>{
        uni.request({
            url:baseUrl+option.url,
            method:option.method||'GET',
            data:option.data||{},
            success:(res)=>{
                console.log(res)
                resolve(res)
            },
            fail: (err) => {
                reject(err)
            }
            
        })
    })
}
